﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑客户信息</title>
<link href="${pageContext.request.contextPath}/css/client/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/admin-all.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />

    <script src="${pageContext.request.contextPath}/js/layui/layui.all.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery/jquery-3.3.1.js"></script>

</head>

<body>
<div class="alert alert-info">客户信息管理<b class="tip"></b>客户信息 </div>
<form action="upd_customer?type=modify" method="post">
<div class="button_bar">
	<input type="button" class="common_button" onclick="layer.alert('欢迎使用!');" value="帮助"/>
	<input type="button" class="common_button" onclick="history.go(-1);" value="返回"/>
	<input type="button" class="common_button" onclick="form.submit()" value="保存"/>
</div>

<c:forEach var="item" items="${map}">
<table class="query_table">
	<tr>
		<th>客户编号</th>
		<td> <input type="text" name="cus_id" value="${item.cus_id}" readonly/></td>
		<th>名称</th>
		<td>
            <input type="text" name="cus_name" value="${item.cus_name}"/>
            <span class="red_star">*</span>
        </td>
	</tr>
	<tr>
		<th>地区</th>
		<td>
			<select name="cus_area">
				<option >请选择...</option>
				<option value="华北"  <c:if test='${item.cus_area == "华北"}'> selected='selected'</c:if> >华北</option>
				<option value="华南"  <c:if test='${item.cus_area == "华南"}'> selected='selected'</c:if>  >华南</option>
				<option value="东北"  <c:if test='${item.cus_area == "东北"}'> selected='selected'</c:if>  >东北</option>
				<option value="西部"  <c:if test='${item.cus_area == "西部"}'> selected='selected'</c:if>  >西部</option>
			</select>
			<span class="red_star">*</span></td>
		<th>客户经理</th>
		<td>
            <input type="text" name="cus_manager" value="${item.cus_manager}"/>
			<span class="red_star">*</span>
		</td>
	</tr>	
	<tr>
		<th>客户等级</th>
		<td>
			<select name="cus_rank">
				<option >请选择...</option>
				<option value="普通客户" <c:if test='${item.cus_rank == "普通客户"}'> selected='selected'</c:if> >普通客户</option>
				<option value="大客户" <c:if test='${item.cus_rank == "大客户"}'> selected='selected'</c:if> >大客户</option>
				<option value="长期合作伙伴" <c:if test='${item.cus_rank == "长期合作伙伴"}'> selected='selected'</c:if> >长期合作伙伴</option>
			</select>
			<span class="red_star">*</span>
		</td>
		<th></th><td></td>
	</tr>
	<tr>
		<th>客户满意度</th>
		<td>
			<select name="cus_satisfaction">
			    <option >未指定</option>
				<option value="5"  <c:if test='${item.cus_satisfaction == "5"}'> selected='selected'</c:if> >☆☆☆☆☆</option>
				<option value="4"  <c:if test='${item.cus_satisfaction == "4"}'> selected='selected'</c:if> >☆☆☆☆</option>
				<option value="3"  <c:if test='${item.cus_satisfaction == "3"}'> selected='selected'</c:if> >☆☆☆</option>
				<option value="2"  <c:if test='${item.cus_satisfaction == "2"}'> selected='selected'</c:if> >☆☆</option>
				<option value="1"  <c:if test='${item.cus_satisfaction == "1"}'> selected='selected'</c:if> >☆</option>
			</select>
			<span class="red_star">*</span>
		</td>
		<th>客户信用度</th>
		<td>
			<select name="cus_credit">
			    <option value="">未指定</option>
				<option value="5"  <c:if test='${item.cus_credit == "5"}'> selected='selected'</c:if> >☆☆☆☆☆</option>
				<option value="4"  <c:if test='${item.cus_credit == "4"}'> selected='selected'</c:if> >☆☆☆☆</option>
				<option value="3"  <c:if test='${item.cus_credit == "3"}'> selected='selected'</c:if> >☆☆☆</option>
				<option value="2"  <c:if test='${item.cus_credit == "2"}'> selected='selected'</c:if> >☆☆</option>
				<option value="1"  <c:if test='${item.cus_credit == "1"}'> selected='selected'</c:if> >☆</option>
			</select>
			<span class="red_star">*</span>
		</td>
	</tr>
</table>
<br />
<table class="query_table">
	 <tr>
		<th>地址</th>
		<td>
            <input type="text" name="address" value="${item.address}" />
            <span class="red_star">*</span>
        </td>
		<th>邮政编码</th>
		<td><input type="text" name="post_code" value="${item.post_code}"/>
            <span class="red_star">*</span>
        </td>
    </tr>
    <tr>
		<th>电话</th>
		<td>
			<input type="text" name="tel" value="${item.tel}" /><span class="red_star">*</span></td>
		<th>传真</th>
		<td><input name="fax" value="${item.fzx}" name="fax" size="20"  /><span class="red_star">*</span></td>
     </tr>	
	<tr>
		<th>网址</th>
		<td><input value="${item.url}" name="url" size="20"  /><span class="red_star">*</span></td>
		<th></th><td></td>
	</tr>
</table>
<br />
<table class="query_table">
	<tr>
		<th>营业执照注册号</th>
		<td><input type="text" name="regist_license" value="${item.regist_license}"/></td>
		<th>法人</th>
		<td><input type="text" name="artificial_person" value="${item.artificial_person}"/>
            <span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>注册资金（万元）</th>
		<td>
			<input type="text" name="registered_capital" value="${item.registered_capital}"/> </td>
		<th>年营业额</th>
		<td>
			<input value="${item.annual_turnover}" name="annual_turnover"  size="20" />
		</td>
	</tr>	
	<tr>
		<th>开户银行</th>
		<td>
			<input type="text" name="deposit_bank" value="${item.deposit_bank}" /><span class="red_star">*</span>
		</td>
		<th>银行帐号</th>
		<td><input type="text" name="bank_account" value="${item.bank_account}"/><span class="red_star">*</span></td>
	</tr>
	<tr>
		<th>地税登记号</th>
		<td><input type="text" name="tax_regist_no" value="${item.tax_regist_no}"/></td>
		<th>国税登记号</th>
		<td><input type="text" name="national_tax_regist_no" value="${item.national_tax_regist_no}"/></td>
	</tr>
</table>
    <input type="hidden" name="fid＂　value="${item.fid}"/>
</c:forEach>
</form>
</body>
</html>
